package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.dto.QuestionFormDTO;
import com.tianji.learning.domain.page.QuestionAdminPageQuery;
import com.tianji.learning.domain.page.QuestionPageQuery;
import com.tianji.learning.domain.po.InteractionQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.QuestionAdminVO;
import com.tianji.learning.domain.vo.QuestionVO;

/**
 * <p>
 * 互动提问的问题表 服务类
 * </p>
 *
 * @author ffk
 * @since 2024-06-25
 */
public interface IInteractionQuestionService extends IService<InteractionQuestion> {


    void addQuestion(QuestionFormDTO questionFormDTO);

    void updateQuestionById(Long id, QuestionFormDTO questionFormDTO);

    PageDTO<QuestionVO> userQueryPage(QuestionPageQuery pageQuery);

    QuestionVO getQuestionDetailByQuestionId(Long id);

    void deleteQuestionById(Long id);

    PageDTO<QuestionAdminVO> adminQueryPage(QuestionAdminPageQuery pageQuery);

    void updateAdminQuestionHidden(Long id, Boolean hidden);

    QuestionAdminVO adminQueryById(Long id);
}
